package cn.yzgy.yzgyoa.common.service;

import cn.yzgy.yzgyoa.common.entity.ReportRecord;
import cn.yzgy.yzgyoa.ucenter.entity.UserInfoDetail;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Yqsen
 * @since 2020-10-22
 */
public interface IReportRecordService extends IService<ReportRecord> {

    /**
     * 文件下载
     * @param id 订单号
     * @param response 请求
     * @param curUser 操作员信息
     * @throws IOException 异常信息
     */
    void fileDownload(String id, HttpServletResponse response, UserInfoDetail curUser) throws IOException;

    /**
     * 上传文件下载
     * @param id 文件Id
     * @param response 请求
     * @throws IOException 异常信息
     */
    void uploadFileDownload(String id, HttpServletResponse response) throws IOException;

    /**
     * 票据预览
     * @param id 文件id
     * @return base64
     */
    String getBase64(String id);
}
